package xkp.lesson2;

import java.io.IOException;

public class TestCopy {
    public static void main(String[] args) throws IOException {
        //测试文件拷贝的速度
        long beginTime = System.currentTimeMillis();
        //FileUtils.copyFileByByte("D:\\eclipse-jee-2019-06-R-win32-x86_64.zip","C:\\Users\\Administrator\\Desktop\\test");
        FileUtils.copyFileByBuf("D:\\eclipse-jee-2019-06-R-win32-x86_64.zip","C:\\Users\\Administrator\\Desktop\\test");
        long endTime = System.currentTimeMillis();
        System.out.println(endTime-beginTime+"ms");
    }


}
